home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / mc51bugs / q32851 < prev    next >
Text File  |  1988-07-29  |  1KB  |  47 lines

  1. Q32851 Internal Compiler Error: grammar.c Line 91
  2. C Compiler
  3. 5.10   | 5.10
  4. MS-DOS | OS/2
  5.  
  6. Summary:
  7.    The code fragment below will produce the following error when
  8. compiled with the options /AH and /Oi:
  9.  
  10.             fatal error C1001: Internal Compiler Error
  11.               (compiler file '../grammar.c', line 91)
  12.               Contact Microsoft Technical Support
  13.  
  14.  
  15.    Microsoft has confirmed this to be a problem in Version 5.10 of the
  16. C compiler. We are researching this problem and will post new
  17. information as it becomes available.
  18.    You can work around this problem by using the function version of
  19. strcpy rather than the intrinsic version in this module.
  20.  
  21. More information:
  22.    The following code reproduces the problem:
  23. /* uncomment this pragma to work around the problem:
  24. #pragma function (strcpy)
  25. */
  26. #include <string.h>
  27.  
  28. void update(void);
  29.  
  30. struct OLD {
  31.         int OLDtype;
  32.         char OLDdata[12];
  33. } OLDbuf;
  34.  
  35. struct NEW {
  36.         char NEWdata[12];
  37. } NEWbuf;
  38.  
  39. void update(void)
  40. {
  41.         strcpy(NEWbuf.NEWdata, OLDbuf.OLDdata);
  42. }
  43.  
  44.  
  45. Keywords:  buglist5.10 buglist5.00 qfbv
  46. Updated  88/07/29 12:16
  47.